package com.itheima.内部类;

public class test1 {
    public static void main(String[] args) {
        Other.inner oi = new Other().new inner();
        oi.show();

    }

    static class Other {
        int age = 10;

        public class inner {
            int num = 20;

            public void show() {
                System.out.println(age);
                System.out.println(num);
                System.out.println("inner...show");
            }
        }

       public void method(){
            inner i=new inner();
           i.show();
       }
    }


}
